/*
 * 兑换订单
 */
import {
  post,
  get,
  put,
  dalete,
  postJosn,
  putone,
  patch,
  patchJson,
  daleteJson,
  download
} from "../utils/request";

// 兑换订单统计
export function queryOrderExchangeStatistics(data) {
  return post("/api/trade-service/v1/myorder/queryOrderExchangeStatistics", data);
}

// 兑换订单列表
export function queryOrderExchange(data) {
  return post("/api/trade-service/v1/tradeOrderSearch/queryTradeOrderByParam", data);
}

// 兑换订单导出
export function queryOrderExchangeExcel(data) {
  return download("/api/trade-service/v1/myorder/queryOrderExchangeExcel", data);
}

// 兑换订单的物流
export function upDeliverOrderExchange(data) {
  return post("/api/trade-service/v1/myorder/upDeliverOrderExchange", data);
}

// 获取物流商的查询
export function queryLogistics() {
  return get("/api/trade-service/v1/myorder/physicalDistribution");
}

// 撤回云币订单
export function exchangeOrderCanceled(params) {
  return get("/api/trade-service/v1/trade/exchangeOrderCanceled", params);
}

// 查实时定向云币
export function queryStoreMerchantIntegral(params) {
  return get('/api/member-service/v1/memberBonuspoint/queryStoreMerchantIntegral', params);
} 